package com.jiajia.study.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiajia.common.utils.PageUtils;
import com.jiajia.study.ware.entity.WareSkuEntity;

import java.util.Map;

/**
 * 商品库存
 *
 * @author zjj
 * @email zjj@qq.com
 * @date 2025-06-09 17:47:39
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 添加库存
     * @param skuId     skuId
     * @param wareId    仓库 id
     * @param skuNum    数量
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);
}

